import request from '@/utils/request'

// 查询
export function list(query) {
  return request({
    url: '/system/employee/list',
    method: 'get',
    params: query
  })
}

// 状态冻结
export function frost(query) {
  return request({
    url: '/system/employee/frost',
    method: 'delete',
    params: query
  })
}
//删除员工
export function delEmployee(id) {
  return request({
    url: '/system/employee/' + id,
    method: 'delete',
  })
}

// 添加人员
export function addEmployee(data) {
  return request({
    url: '/system/employee',
    method: 'post',
    data: data
  })
}

// 修改人员
export function editEmployee(data) {
  return request({
    url: '/system/employee',
    method: 'put',
    data: data
  })
}

//设置手环
export function setWatches(data) {
  return request({
    url: '/system/employee/setWatches',
    method: 'put',
    data: data
  })
}
